@extends('layouts.admin')

@section('content')
    <div class="console-title">
        <h2>系统设置->积分设置</h2>
    </div>
    <div class="content-div">
        <form method="post" id="Form" action="{{admin_url('settings/save')}}">
            {{csrf_field()}}
            <table width="100%" cellspacing="0" cellpadding="0" border="0" class="formtable">
                <tbody>
                <tr>
                    <td class="cell-label" width="110">注册送积分:</td>
                    <td class="cell-input" width="320">
                        <div class="input-group">
                            <input title="" type="text" class="form-control" name="settings[point_register]"  value="{{$settings['point_register'] or ''}}">
                        </div>
                    </td>
                    <td class="cell-tips">首次注册赠送积分。</td>
                </tr>
                <tr>
                    <td class="cell-label">登录送积分:</td>
                    <td class="cell-input">
                        <div class="input-group">
                            <input title="" type="text" class="form-control" name="settings[point_login]"  value="{{$settings['point_login'] or ''}}">
                        </div>
                    </td>
                    <td class="cell-tips">系统每日登陆后直接送积分。</td>
                </tr>
                <tr>
                    <td class="cell-label">消费送积分:</td>
                    <td class="cell-input">
                        <div class="input-group">
                            <input title="" type="text" class="form-control" name="settings[point_rate]"  value="{{$settings['point_rate'] or ''}}">
                        </div>
                    </td>
                    <td class="cell-tips">消费金额百分比</td>
                </tr>
                <tr>
                    <td class="cell-label">上级送积分:</td>
                    <td class="cell-input">
                        <div class="input-group">
                            <input title="" type="text" class="form-control" name="settings[point_up_rate]"  value="{{$settings['point_up_rate'] or ''}}">
                        </div>
                    </td>
                    <td class="cell-tips">下级消费送上级的积分, 消费金额百分比</td>
                </tr>
                <tr>
                    <td class="cell-label">上上级送积分:</td>
                    <td class="cell-input">
                        <div class="input-group">
                            <input title="" type="text" class="form-control" name="settings[point_super_rate]"  value="{{$settings['point_super_rate'] or ''}}">
                        </div>
                    </td>
                    <td class="cell-tips">下下级消费送的积分, 消费金额百分比</td>
                </tr>
                </tbody>
                <tfoot>
                <tr>
                    <td></td>
                    <td colspan="2">
                        <button type="submit" class="btn btn-primary w100">更新配置</button>
                    </td>
                </tr>
                </tfoot>
            </table>
        </form>
    </div>
@stop
